package com.tarry.decorate.optimize;

/**
 * 鸡蛋装饰器
 */
public class EggDecorator extends BatterCakeDecorate{

    public EggDecorator(BatterCake batterCake) {
        super(batterCake);
    }

    @Override
    protected void doSomething() {
        // todo do something
    }

    @Override
    protected String getMsg() {
        return super.getMsg() + "+1个鸡蛋";
    }

    @Override
    public int getPrice() {
        // 多1元钱
        return super.getPrice() + 1;
    }
}
